package com.agent.history.service;

import com.agent.commons.other.MessageHistory;
import com.agent.history.dataobject.ConversationBaseDO;
import com.agent.history.vo.ConversationListVO;

import java.util.List;

public interface ConversationService {
    public void addConversation(MessageHistory messageHistory);

    public boolean  checkConversationIdWithUserId(String userId,String conversationId);

    public List<ConversationBaseDO> getConversationMember(String userId);

    /**
     * 从Redis中获取会话列表
     */
    public List<ConversationListVO> getConversationListVOFromRedis(String userId);
    /**
     * 判断用户是否存在
     */
    public boolean checkUserExist(String userId);
}
